﻿using Eleven.Wcf.ServiceInterface;
using System;
using System.ServiceModel;

namespace Eleven.Wcf.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var channelFactory = new ChannelFactory<ITestService>("wcfservice"))
            {
                var testService = channelFactory.CreateChannel();

                var sum = testService.Add(3, 7.1);

                Console.WriteLine(testService.SayHi());
                Console.ReadKey();
            }
        }
    }
}
